package com.prs.crm.dao.stock;

import java.util.Collection;
import java.util.List;

import com.prs.crm.dao.BaseDao;
import com.prs.crm.domain.cdxh.cd_Product;
import com.prs.crm.domain.stock.Product;
import com.prs.crm.domain.stock.ProductStore;
import com.prs.crm.domain.store.StoreIn;
import com.prs.crm.domain.store.StoreRoom;

public interface ProductStoreDao extends BaseDao<ProductStore> {
	
	List<ProductStore> getRecord(int code);
	
	List<ProductStore> getProductStoreSize(int code,int roomid,String batchNum);
	
	ProductStore getPrStore(java.io.Serializable id);
	
	void savePrStore(ProductStore pr);
	
	ProductStore getStore( StoreRoom room, Product product,String batchNum);
	
	ProductStore getProductStoreObject(Product id,StoreRoom room,String batchNum);
	
	List<ProductStore> getProductStores(Product product,StoreRoom room);
	String getNum(Product id,StoreRoom room,String batchNum);
	Collection<ProductStore> getAllProductStores(); 
	public double getStoreNums(Product id, StoreRoom room);
	public double getStoreNums(Product id,StoreRoom room,String batchNum);
	
	public List<String> findRoomCodes(); 
	public void  saveStockNums(StoreRoom room);
    public List<ProductStore> findproductNum(String roomcode);
    
    public List<Integer> findproductId(String roomcode);

}
